<template>
	<view class="mainpadding2">
		<view class="ffffff mainpadding_top radius flexbetween" v-for="item in list" :key="item.id">
			<view>
				<view class="xiaohei bold titletext">{{item.name}}</view>
				<view class="hei_text margin_top1 bold" >充<text class="hong_text"  style="font-size: 44rpx;">{{item.price}}</text>送<text class="hong_text"  style="font-size: 44rpx;">{{item.send_price}}</text>
				</view>
			</view>
			<view class="listbtnhuang" @click="chongzhi(item)">點擊充值</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				shop_id: "",
				list: [],
				allmoney:0
			}
		},
		onLoad(options) {
			this.shop_id = options.id
			this.init()
		},
		methods: {
			init() {
				this.http.request("/api/shop/shopRechargeItemIndex", 'POST', {
					shop_id:this.shop_id
					
				}).then(res => {
					if (res.code == 1) {
						this.list = res.data
					} else {
						this.http.toast(res.msg);
					}
				})
			},
			chongzhi(item){
				uni.navigateTo({
					url:"/pages_index/chuzhizf?shop_id="+this.shop_id+"&paymoney="+item.price+"&id="+item.id
				})
			},
		}
	}
</script>

<style>

</style>